/**
 * @file main.cpp
 * @author bean (813023818@qq.com)
 * @brief
 * @version 0.1
 * @date 2022-12-16
 *
 * @copyright Copyright (c) 2022
 *
 */
#include "driver.h"
#include "monitor.h"
#include "full_add.h"

int sc_main(int argc, char *argv[])
{
	sc_signal<bool> t_a, t_b, t_cin, t_sum, t_cout;
	full_add f1("FULLADDerwithHalfadder");
	f1 << t_a << t_b << t_cin << t_sum << t_cout;
	driver d1("Generator");
	d1.d_a(t_a);
	d1.d_b(t_b);
	d1.d_cin(t_cin);
	monitor mo1("Monitor");
	mo1 << t_a << t_b << t_cin << t_sum << t_cout;
	sc_start(100, SC_NS);
	return 0;
}
